<!-- Dusan Milic -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>Untitled Document</title>
        <link href="style.css" rel="stylesheet" type="text/css" media="screen" />
    </head>

    <body>

        <div id="wrapper">
           <?php
           session_start();
           include("insert/head.php"); ?>
        	
        

		 

            <div id="content" style="top:300px; z-index:-1">

                <div id="content-main" style="width:930px;">
                    <div style="position:relative; left:220px; width:700px;">

                            <form enctype="multipart/form-data" name="dodaj_poklon" action="salji_poklon.php" method="post">
                                <table border="0">
                                    <tr>
                                        <td>Naziv poklona:</td>
                                        <td><input type="text" name="poklon"/></td>
                                    </tr>
                                    <tr>
                                        <td>Cena:</td>
                                        <td><input type="text" name="cena"/></td>
                                    </tr>
                                    <tr>
                                        <td>Odredi tip licnosti kome pripada:</td>
                                        
                                        <td> 
                                        <select name="Tip">
                                        <?php
									
												include("konekcija_sa_bazom.php");
												mysql_query("SET NAMES utf8");
		  									    $query = "SELECT naziv FROM tiplicnosti";
		   										$result = mysql_query($query);
												
		  										$duzina = mysql_num_rows($result);
												
												for($i=0;$i<$duzina;$i++)
												{
													$row = mysql_fetch_array($result);
													echo'<option>'.$row["naziv"].'</option>';
												}
												
		  								 ?>		
								
          									
           										
            									
        									</select>
    								  </td>

                                    </tr>
                                   
                                   
                                </table>

                                <br/><br/>
                                <input type="hidden" name="MAX_FILE_SIZE" value="64000" />
                                <label for="file">Одабери слику:</label>
                                <input id="file" type="file" name="file" value="Слика"/>
                             
                                    
                                <br/><br/>
                                <input name="submit" type="submit" value="Dodaj Poklon" />
        <input name="id" type="text" size="30" readonly="readonly" style="visibility:hidden;" value='<?php echo($_SESSION["id"]); ?>'>
                            </form>
                            <br/>
                            <br/>
                            <a href="index.php">Одустани</a>
                    </div>
                </div>
            </div>


        </div>

    </body>
</html>